import { ListItemDefaultProps } from './props';
import fmtEvent from '../../_util/fmtEvent';
Component({
    props: ListItemDefaultProps,
    methods: {
        onTap: function (e) {
            if (this.props.disabled)
                return;
            var onTap = this.props.onTap;
            if (onTap) {
                var event_1 = fmtEvent(this.props, e);
                onTap(event_1);
            }
        },
        catchTap: function (e) {
            if (this.props.disabled)
                return;
            var catchTap = this.props.catchTap;
            if (catchTap) {
                var event_2 = fmtEvent(this.props, e);
                catchTap(event_2);
            }
        },
    },
});
